/* ===== 全局样式系统 ===== */

/* CSS 变量定义 - 设计令牌 */
:root {
  /* 主色调 */
  --primary-color: #409eff;
  --primary-light: #66b1ff;
  --primary-dark: #337ecc;
  --primary-gradient: linear-gradient(135deg, #409eff 0%, #66b1ff 100%);
  --primary-gradient-hover: linear-gradient(135deg, #337ecc 0%, #409eff 100%);

  /* 辅助色 */
  --success-color: #67c23a;
  --success-light: #85ce61;
  --warning-color: #e6a23c;
  --warning-light: #ebb563;
  --danger-color: #f56c6c;
  --danger-light: #f78989;
  --info-color: #909399;
  --info-light: #a6a9ad;

  /* 中性色 */
  --text-primary: #303133;
  --text-regular: #606266;
  --text-secondary: #909399;
  --text-placeholder: #c0c4cc;
  --text-inverse: #ffffff;

  /* 背景色 */
  --bg-color: #f0f2f5;
  --bg-primary: #ffffff;
  --bg-secondary: #f5f7fa;
  --bg-tertiary: #fafafa;
  --bg-quaternary: #f0f2f5;
  --bg-overlay: rgba(0, 0, 0, 0.5);
  --bg-mask: rgba(255, 255, 255, 0.9);


  /* 边框色 */
  --border-light: #ebeef5;
  --border-base: #dcdfe6;
  --border-dark: #c0c4cc;
  --border-darker: #a8abb2;

  /* 阴影 */
  --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.12), 0 0 6px rgba(0, 0, 0, 0.04);
  --shadow-base: 0 2px 12px 0 rgba(0, 0, 0, 0.1);
  --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.15);
  --shadow-heavy: 0 8px 32px rgba(0, 0, 0, 0.2);
  --shadow-inset: inset 0 2px 4px rgba(0, 0, 0, 0.06);
  --shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);

  /* 圆角 */
  --radius-small: 6px;
  --radius-base: 10px;
  --radius-large: 16px;
  --radius-xl: 24px;
  --radius-round: 50%;

  /* 间距 */
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-xxl: 48px;
  --spacing-xxxl: 64px;

  /* 字体 */
  --font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-family-mono: "JetBrains Mono", "Fira Code", Consolas, Monaco, "Courier New", monospace;
  
  --font-size-xs: 12px;
  --font-size-sm: 14px;
  --font-size-base: 16px;
  --font-size-lg: 18px;
  --font-size-xl: 20px;
  --font-size-xxl: 24px;
  --font-size-xxxl: 32px;
  
  --font-weight-light: 300;
  --font-weight-normal: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  /* 行高 */
  --line-height-tight: 1.25;
  --line-height-base: 1.5;
  --line-height-relaxed: 1.75;

  /* 动画 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index 层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
  
  /* 断点 */
  --breakpoint-xs: 576px;
  --breakpoint-sm: 768px;
  --breakpoint-md: 992px;
  --breakpoint-lg: 1200px;
  --breakpoint-xl: 1400px;

  /* 动画 */
  --transition-fast: 0.15s ease;
  --transition-base: 0.3s ease;
  --transition-slow: 0.5s ease;
  --transition-spring: 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);

  /* Z-index 层级 */
  --z-dropdown: 1000;
  --z-sticky: 1020;
  --z-fixed: 1030;
  --z-modal-backdrop: 1040;
  --z-modal: 1050;
  --z-popover: 1060;
  --z-tooltip: 1070;
  --z-notification: 1080;
}

/* 全局重置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-family);
  font-size: var(--font-size-base);
  color: var(--text-primary);
  background-color: var(--bg-secondary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

/* 应用容器 */
#app {
  width: 100%;
  min-height: 100vh;
  background-color: var(--bg-secondary);
}

/* 链接样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--primary-dark);
}

/* 标题样式 */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-primary);
  margin-bottom: var(--spacing-md);
}

h1 {
  font-size: var(--font-size-xxl);
}
h2 {
  font-size: var(--font-size-xl);
}
h3 {
  font-size: var(--font-size-lg);
}
h4 {
  font-size: var(--font-size-base);
}

/* 段落样式 */
p {
  margin-bottom: var(--spacing-md);
  color: var(--text-regular);
}

/* 滚动条美化 */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
  border-radius: var(--radius-small);
}

::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: var(--radius-small);
  transition: background var(--transition-fast);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ===== 通用工具类 ===== */

/* 布局工具类 */
.flex {
  display: flex;
}
.flex-col {
  flex-direction: column;
}
.flex-row {
  flex-direction: row;
}
.flex-wrap {
  flex-wrap: wrap;
}
.flex-nowrap {
  flex-wrap: nowrap;
}
.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}
.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.flex-around {
  display: flex;
  align-items: center;
  justify-content: space-around;
}
.flex-start {
  display: flex;
  align-items: center;
  justify-content: flex-start;
}
.flex-end {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.items-center {
  align-items: center;
}
.items-start {
  align-items: flex-start;
}
.items-end {
  align-items: flex-end;
}
.justify-center {
  justify-content: center;
}
.justify-between {
  justify-content: space-between;
}
.justify-around {
  justify-content: space-around;
}

.flex-1 {
  flex: 1;
}
.flex-auto {
  flex: auto;
}
.flex-none {
  flex: none;
}

/* 间距工具类 */
.m-0 {
  margin: 0;
}
.m-xs {
  margin: var(--spacing-xs);
}
.m-sm {
  margin: var(--spacing-sm);
}
.m-md {
  margin: var(--spacing-md);
}
.m-lg {
  margin: var(--spacing-lg);
}
.m-xl {
  margin: var(--spacing-xl);
}

.mt-0 {
  margin-top: 0;
}
.mt-xs {
  margin-top: var(--spacing-xs);
}
.mt-sm {
  margin-top: var(--spacing-sm);
}
.mt-md {
  margin-top: var(--spacing-md);
}
.mt-lg {
  margin-top: var(--spacing-lg);
}
.mt-xl {
  margin-top: var(--spacing-xl);
}

.mb-0 {
  margin-bottom: 0;
}
.mb-xs {
  margin-bottom: var(--spacing-xs);
}
.mb-sm {
  margin-bottom: var(--spacing-sm);
}
.mb-md {
  margin-bottom: var(--spacing-md);
}
.mb-lg {
  margin-bottom: var(--spacing-lg);
}
.mb-xl {
  margin-bottom: var(--spacing-xl);
}

.ml-0 {
  margin-left: 0;
}
.ml-xs {
  margin-left: var(--spacing-xs);
}
.ml-sm {
  margin-left: var(--spacing-sm);
}
.ml-md {
  margin-left: var(--spacing-md);
}
.ml-lg {
  margin-left: var(--spacing-lg);
}
.ml-xl {
  margin-left: var(--spacing-xl);
}

.mr-0 {
  margin-right: 0;
}
.mr-xs {
  margin-right: var(--spacing-xs);
}
.mr-sm {
  margin-right: var(--spacing-sm);
}
.mr-md {
  margin-right: var(--spacing-md);
}
.mr-lg {
  margin-right: var(--spacing-lg);
}
.mr-xl {
  margin-right: var(--spacing-xl);
}

.p-0 {
  padding: 0;
}
.p-xs {
  padding: var(--spacing-xs);
}
.p-sm {
  padding: var(--spacing-sm);
}
.p-md {
  padding: var(--spacing-md);
}
.p-lg {
  padding: var(--spacing-lg);
}
.p-xl {
  padding: var(--spacing-xl);
}

/* 文本工具类 */
.text-left {
  text-align: left;
}
.text-center {
  text-align: center;
}
.text-right {
  text-align: right;
}
.text-justify {
  text-align: justify;
}

.text-xs {
  font-size: var(--font-size-xs);
}
.text-sm {
  font-size: var(--font-size-sm);
}
.text-base {
  font-size: var(--font-size-base);
}
.text-lg {
  font-size: var(--font-size-lg);
}
.text-xl {
  font-size: var(--font-size-xl);
}
.text-xxl {
  font-size: var(--font-size-xxl);
}

.font-light {
  font-weight: 300;
}
.font-normal {
  font-weight: 400;
}
.font-medium {
  font-weight: 500;
}
.font-semibold {
  font-weight: 600;
}
.font-bold {
  font-weight: 700;
}

.text-primary {
  color: var(--text-primary);
}
.text-regular {
  color: var(--text-regular);
}
.text-secondary {
  color: var(--text-secondary);
}
.text-placeholder {
  color: var(--text-placeholder);
}
.text-success {
  color: var(--success-color);
}
.text-warning {
  color: var(--warning-color);
}
.text-danger {
  color: var(--danger-color);
}
.text-info {
  color: var(--info-color);
}

/* 背景工具类 */
.bg-primary {
  background-color: var(--bg-primary);
}
.bg-secondary {
  background-color: var(--bg-secondary);
}
.bg-tertiary {
  background-color: var(--bg-tertiary);
}

/* 圆角工具类 */
.rounded-none {
  border-radius: 0;
}
.rounded-sm {
  border-radius: var(--radius-small);
}
.rounded {
  border-radius: var(--radius-base);
}
.rounded-lg {
  border-radius: var(--radius-large);
}
.rounded-full {
  border-radius: var(--radius-round);
}

/* 阴影工具类 */
.shadow-none {
  box-shadow: none;
}
.shadow-light {
  box-shadow: var(--shadow-light);
}
.shadow {
  box-shadow: var(--shadow-base);
}
.shadow-dark {
  box-shadow: var(--shadow-dark);
}

/* 过渡动画工具类 */
.transition-fast {
  transition: all var(--transition-fast);
}
.transition {
  transition: all var(--transition-base);
}
.transition-slow {
  transition: all var(--transition-slow);
}

/* 显示/隐藏工具类 */
.hidden {
  display: none;
}
.visible {
  visibility: visible;
}
.invisible {
  visibility: hidden;
}

/* 位置工具类 */
.relative {
  position: relative;
}
.absolute {
  position: absolute;
}
.fixed {
  position: fixed;
}
.sticky {
  position: sticky;
}

/* 宽高工具类 */
.w-full {
  width: 100%;
}
.h-full {
  height: 100%;
}
.min-h-screen {
  min-height: 100vh;
}

/* 溢出处理 */
.overflow-hidden {
  overflow: hidden;
}
.overflow-auto {
  overflow: auto;
}
.overflow-scroll {
  overflow: scroll;
}

/* 文本溢出 */
.truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ===== 组件样式增强 ===== */

/* 卡片组件增强 */
.enhanced-card {
  background: var(--bg-primary);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  transition: all var(--transition-base);
  overflow: hidden;
}

.enhanced-card:hover {
  box-shadow: var(--shadow-base);
  transform: translateY(-2px);
}

.enhanced-card.card-interactive:hover {
  box-shadow: var(--shadow-dark);
  transform: translateY(-4px);
}

/* 按钮增强 */
.btn-gradient {
  background: var(--primary-gradient);
  border: none;
  color: white;
  font-weight: 500;
  transition: all var(--transition-base);
}

.btn-gradient:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-base);
  filter: brightness(1.1);
}

.btn-glass {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: white;
  transition: all var(--transition-base);
}

.btn-glass:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-1px);
}

/* 输入框增强 */
.input-enhanced {
  transition: all var(--transition-base);
  border-radius: var(--radius-base);
}

.input-enhanced:focus {
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2);
  border-color: var(--primary-color);
}

/* 加载动画 */
@keyframes pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.5;
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes bounce {
  0%,
  20%,
  53%,
  80%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  40%,
  43% {
    transform: translate3d(0, -30px, 0);
  }
  70% {
    transform: translate3d(0, -15px, 0);
  }
  90% {
    transform: translate3d(0, -4px, 0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.animate-pulse {
  animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}
.animate-spin {
  animation: spin 1s linear infinite;
}
.animate-bounce {
  animation: bounce 1s infinite;
}
.animate-fadeIn {
  animation: fadeIn 0.6s ease-out;
}
.animate-slideInRight {
  animation: slideInRight 0.6s ease-out;
}
.animate-slideInLeft {
  animation: slideInLeft 0.6s ease-out;
}

/* 渐变背景 */
.gradient-primary {
  background: var(--primary-gradient);
}

.gradient-success {
  background: linear-gradient(135deg, #67c23a 0%, #85ce61 100%);
}

.gradient-warning {
  background: linear-gradient(135deg, #e6a23c 0%, #ebb563 100%);
}

.gradient-danger {
  background: linear-gradient(135deg, #f56c6c 0%, #f78989 100%);
}

.gradient-purple {
  background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
}

.gradient-blue {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%);
}

/* 玻璃态效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.glass-dark {
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 悬浮效果 */
.hover-lift {
  transition: transform var(--transition-base),
    box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-dark);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* 状态指示器 */
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  margin-right: var(--spacing-xs);
}

.status-dot.online {
  background-color: var(--success-color);
}
.status-dot.offline {
  background-color: var(--text-placeholder);
}
.status-dot.busy {
  background-color: var(--warning-color);
}
.status-dot.away {
  background-color: var(--danger-color);
}

/* 徽章样式 */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--font-size-xs);
  font-weight: 500;
  border-radius: 12px;
  line-height: 1;
}

.badge.badge-primary {
  background-color: var(--primary-color);
  color: white;
}
.badge.badge-success {
  background-color: var(--success-color);
  color: white;
}
.badge.badge-warning {
  background-color: var(--warning-color);
  color: white;
}
.badge.badge-danger {
  background-color: var(--danger-color);
  color: white;
}
.badge.badge-info {
  background-color: var(--info-color);
  color: white;
}

/* ===== 响应式设计 ===== */

/* 断点定义 */
/* xs: 0px - 576px (手机) */
/* sm: 576px - 768px (大手机/小平板) */
/* md: 768px - 992px (平板) */
/* lg: 992px - 1200px (小桌面) */
/* xl: 1200px+ (大桌面) */

/* 小屏幕 (手机) */
@media (max-width: 576px) {
  :root {
    --spacing-xs: 2px;
    --spacing-sm: 4px;
    --spacing-md: 8px;
    --spacing-lg: 12px;
    --spacing-xl: 16px;
    --spacing-xxl: 24px;

    --font-size-xs: 10px;
    --font-size-sm: 12px;
    --font-size-base: 14px;
    --font-size-lg: 16px;
    --font-size-xl: 18px;
    --font-size-xxl: 20px;
  }

  .container {
    padding: 0 var(--spacing-md);
  }

  .flex-col-mobile {
    flex-direction: column;
  }

  .hidden-mobile {
    display: none !important;
  }

  .text-center-mobile {
    text-align: center;
  }

  .w-full-mobile {
    width: 100% !important;
  }

  .p-sm-mobile {
    padding: var(--spacing-sm) !important;
  }

  .m-sm-mobile {
    margin: var(--spacing-sm) !important;
  }
}

/* 中等屏幕 (平板) */
@media (min-width: 577px) and (max-width: 992px) {
  .flex-col-tablet {
    flex-direction: column;
  }

  .hidden-tablet {
    display: none !important;
  }

  .w-full-tablet {
    width: 100% !important;
  }
}

/* 大屏幕 (桌面) */
@media (min-width: 993px) {
  .hidden-desktop {
    display: none !important;
  }

  .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
  }
}

/* 打印样式 */
@media print {
  * {
    background: transparent !important;
    color: black !important;
    box-shadow: none !important;
    text-shadow: none !important;
  }

  .no-print {
    display: none !important;
  }

  .print-break {
    page-break-before: always;
  }
}

/* 深色模式支持 */
@media (prefers-color-scheme: dark) {
  :root {
    --text-primary: #e5e7eb;
    --text-regular: #d1d5db;
    --text-secondary: #9ca3af;
    --text-placeholder: #6b7280;

    --bg-primary: #1f2937;
    --bg-secondary: #111827;
    --bg-tertiary: #374151;
    --bg-overlay: rgba(0, 0, 0, 0.8);

    --border-light: #374151;
    --border-base: #4b5563;
    --border-dark: #6b7280;
  }

  .glass-effect {
    background: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
  }
}

/* 高对比度模式 */
@media (prefers-contrast: high) {
  :root {
    --shadow-light: 0 2px 4px rgba(0, 0, 0, 0.3);
    --shadow-base: 0 2px 12px 0 rgba(0, 0, 0, 0.3);
    --shadow-dark: 0 4px 20px rgba(0, 0, 0, 0.4);
  }

  .enhanced-card {
    border: 2px solid var(--border-dark);
  }
}

/* 减少动画模式 */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .animate-pulse,
  .animate-spin,
  .animate-bounce,
  .animate-fadeIn,
  .animate-slideInRight,
  .animate-slideInLeft {
    animation: none !important;
  }
}

/* Element Plus 组件样式覆盖 */
.el-card {
  border-radius: var(--radius-large) !important;
  box-shadow: var(--shadow-light) !important;
  transition: all var(--transition-base) !important;
}

.el-card:hover {
  box-shadow: var(--shadow-base) !important;
}

.el-button {
  border-radius: var(--radius-base) !important;
  font-weight: 500 !important;
  transition: all var(--transition-base) !important;
}

.el-button--primary {
  background: var(--primary-gradient) !important;
  border: none !important;
}

.el-button--primary:hover {
  transform: translateY(-1px) !important;
  box-shadow: var(--shadow-base) !important;
  filter: brightness(1.1) !important;
}

.el-input__wrapper {
  border-radius: var(--radius-base) !important;
  transition: all var(--transition-base) !important;
}

.el-input__wrapper:hover {
  box-shadow: var(--shadow-light) !important;
}

.el-input__wrapper.is-focus {
  box-shadow: 0 0 0 2px rgba(64, 158, 255, 0.2) !important;
}

.el-form-item__label {
  font-weight: 500 !important;
  color: var(--text-primary) !important;
}

.el-table {
  border-radius: var(--radius-large) !important;
  overflow: hidden !important;
}

.el-table th {
  background-color: var(--bg-tertiary) !important;
  font-weight: 600 !important;
}

.el-pagination {
  justify-content: center !important;
  margin-top: var(--spacing-lg) !important;
}

/* 自定义滚动条 for Element Plus */
.el-scrollbar__wrap {
  scrollbar-width: thin;
  scrollbar-color: var(--border-dark) var(--bg-tertiary);
}

.el-scrollbar__wrap::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.el-scrollbar__wrap::-webkit-scrollbar-track {
  background: var(--bg-tertiary);
}

.el-scrollbar__wrap::-webkit-scrollbar-thumb {
  background: var(--border-dark);
  border-radius: 3px;
}

.el-scrollbar__wrap::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* ===== 高级效果和组件样式 ===== */

/* 毛玻璃效果 */
.glass-effect {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: var(--shadow-base);
}

.dark .glass-effect {
  background: rgba(29, 30, 31, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

/* 渐变背景 */
.gradient-primary {
  background: var(--primary-gradient);
  color: white;
}

.gradient-success {
  background: linear-gradient(135deg, var(--success-color) 0%, var(--success-light) 100%);
  color: white;
}

.gradient-warning {
  background: linear-gradient(135deg, var(--warning-color) 0%, var(--warning-light) 100%);
  color: white;
}

.gradient-danger {
  background: linear-gradient(135deg, var(--danger-color) 0%, var(--danger-light) 100%);
  color: white;
}

/* 悬停效果 */
.hover-lift {
  transition: transform var(--transition-base), box-shadow var(--transition-base);
}

.hover-lift:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-heavy);
}

.hover-scale {
  transition: transform var(--transition-base);
}

.hover-scale:hover {
  transform: scale(1.05);
}

.hover-glow {
  transition: box-shadow var(--transition-base);
}

.hover-glow:hover {
  box-shadow: 0 0 20px rgba(64, 158, 255, 0.3);
}

/* 动画效果 */
.animate-fade-in {
  animation: fadeIn 0.6s ease-out;
}

.animate-slide-up {
  animation: slideUp 0.6s ease-out;
}

.animate-slide-down {
  animation: slideDown 0.6s ease-out;
}

.animate-slide-left {
  animation: slideLeft 0.6s ease-out;
}

.animate-slide-right {
  animation: slideRight 0.6s ease-out;
}

.animate-zoom-in {
  animation: zoomIn 0.6s ease-out;
}

.animate-bounce {
  animation: bounce 1s ease-in-out;
}

.animate-pulse {
  animation: pulse 2s ease-in-out infinite;
}

.animate-float {
  animation: float 3s ease-in-out infinite;
}

/* 动画关键帧 */
@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideRight {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes bounce {
  0%, 20%, 53%, 80%, 100% {
    transform: translate3d(0, 0, 0);
  }
  40%, 43% {
    transform: translate3d(0, -8px, 0);
  }
  70% {
    transform: translate3d(0, -4px, 0);
  }
  90% {
    transform: translate3d(0, -2px, 0);
  }
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.7;
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* 卡片样式 */
.modern-card {
  background: var(--bg-primary);
  border-radius: var(--radius-large);
  box-shadow: var(--shadow-light);
  border: 1px solid var(--border-light);
  padding: var(--spacing-lg);
  transition: all var(--transition-base);
  position: relative;
  overflow: hidden;
}

.modern-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--primary-gradient);
  opacity: 0;
  transition: opacity var(--transition-base);
}

.modern-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dark);
  border-color: var(--primary-color);
}

.modern-card:hover::before {
  opacity: 1;
}

.modern-card.active::before {
  opacity: 1;
}
